Repository navigation
[tycho-5.0.x] Fix NPE in createP2Index for in-place composite-repository edits - #6521
Open
eclipse-tycho-bot wants to merge 1 commit into
Open
eclipse-tycho-bot wants to merge 1 commit into
eclipse-tycho-bot wants to merge 1 commit into
Conversation
eclipse-tycho-bot
enabled auto-merge (rebase)
November 13, 2026 23:13
5 tasks done
Test Results1 089 files +3 1 089 suites +3 8h 47m 27s ⏱️ + 3h 49m 41s For more details on these errors, see this check. Results for commit 030eb69. ± Comparison against base commit b9560d0. ♻️ This comment has been updated with latest results. |
modifyCompositeRepository resolves the effective output location for
an in-place edit (a null outputLocation on the descriptor) inside
modifyOutputCompositeRepository, but only as a local variable that is
never written back to the descriptor. It then calls
createP2Index(repository.outputLocation(), ...) directly afterward,
passing the still-null field, which createP2Index dereferences with
directory.resolve("p2.index") -- throwing NullPointerException after
the composite metadata has already been written.
Extract the existing null-fallback into a shared
resolveOutputLocation() helper and use it at both call sites, so
modifyCompositeRepository passes the same resolved path to
createP2Index that modifyOutputCompositeRepository already computes
for itself.
Fixes #6251
(cherry picked from commit 937fa07)
HannesWell
force-pushed
the
backport/tycho-5.0.x/pr-6286
branch
from
November 22, 2026 19:33
03f0e6e to
030eb69
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
maintotycho-5.0.x:Questions ?
Please refer to the Backport tool documentation